//路由表配置：src/routes/index.jsx
import { Navigate } from "react-router-dom";

import { Home } from "../views/Home";
import { Friend } from "../views/Friend";
import { Setting } from "../views/Setting";
import { NotFound } from "../views/NotFound";
import { Chat } from "../views/Chat";
import Login from "../views/Login";
const routes = [
  // Navigate 重定向
  { path: "/login", element: <Login /> },
  { path: "/", element: <Navigate to="/home" /> },
  {
    path: "/home",
    element: <Home />,
    children: [
      { path: "setting", element: <Setting /> },
      { path: "chat", element: <Chat /> },
      { path: "friend", element: <Friend /> },
      { path: "*", element: <NotFound /> },
    ],
  },
];

export default routes;
let skt = [
  {
    type: "类型1",
    items: [
      {
        name: "名字1",
        icon: "",
        url: "",
        desc: "描述1",
      },
      {
        name: "名字2",
        icon: "",
        url: "",
        desc: "描述2",
      },
    ],
  },
  {
    type: "类型2",
    items: [
      {
        name: "名字1",
        icon: "",
        url: "",
        desc: "描述1",
      },
      {
        name: "名字2",
        icon: "",
        url: "",
        desc: "描述2",
      },
    ],
  },
];
